<template>
	<view class="container2">
		<web-view v-if="Token!=''" :update-title="false" :src="Src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Src:'',
				Domain:''
			};
		},
		onLoad(options) {
			uni.setNavigationBarTitle({title:options.SubName});
			this.Domain = uni.getStorageSync("Domain");
			var Token=uni.getStorageSync("Token") || '';
			var Src=this.Domain+'/Admin/Case/'+options.Method+'.aspx?From=App&ID='+options.CaseID+'&Token='+Token+'&SubName='+options.SubName;
			// #ifdef APP || MP-WEIXIN
			this.Src = Src;
			// #endif
			// #ifdef H5
			window.location.href=Src;
			// #endif
		},
	}
</script>

<style lang="scss">

</style>
